package com.fenghongzhang.day005;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

//5
public class Main2Activity extends AppCompatActivity implements SendFragment.MyListener {
    private TextView tv2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);


        tv2 = (TextView) findViewById(R.id.tv2);

//        tv2.setText();

    }

    //6
    @Override
    public void send(String s) {
        tv2.setText(s);
    }
}
